//
//  ShellRateViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2019/9/26.
//  Copyright © 2019年 VV. All rights reserved.
//

#import "ShellRateViewController.h"
#import "ShellRateView.h"
#import "ShellRateViewModel.h"

@interface ShellRateViewController ()
@property (nonatomic,strong) ShellRateView *rateView;

@property (nonatomic,strong) ShellRateViewModel *viewModel;
@end

@implementation ShellRateViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = LZLocalizedString(@"全球汇率");
    // Do any additional setup after loading the view.
    [self setupUI];
    

}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}


#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.rateView];
    [self.rateView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellRateView *)rateView{
    
    if(!_rateView){
        _rateView = [[ShellRateView alloc] initViewModel:self.viewModel];
    }
    return _rateView;
}

- (ShellRateViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellRateViewModel alloc] init];
    }
    return _viewModel;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
